<!doctype html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>{$hdcms.title}-{$hd.config.webname}</title>
    <css file="__TEMPLATE__/css/download_hdcms.css"/>
</head>
<body>
<div class="header">
    <div class="top-box">
        <div class="channel">
            <a href="__ROOT__" style="color: #FFFFFF;opacity: 1;">首页</a>
            <channel type="top">
                <a href="{$field.caturl}">{$field.catname}</a>
            </channel>
        </div>
    </div>
</div>
<div class="middle">
    <div class="title">
        <img src="__TEMPLATE__/image/hdcms_img.png"/>
    </div>
    <div class="down-btn">
        <a href="__ROOT__/soft/houdunwang-hdcms-master.zip">立即下载</a>
        <a href="__ROOT__/soft/HDCMS.zip">手册下载</a>
    </div>
    <div class="info">
        版本：2014.09.25 | 运行环境：MySQL5 + PHP 5.1.6 或以上
    </div>
    <div class="thumb">
        <img src="__TEMPLATE__/image/hdcms-bg.jpg"/>
    </div>
</div>
<div class="log">
    <div class="logList">
        <h1>更新日志</h1>
    <?php
        if(!$log=S('hdcmsLog')){
            $log = file_get_contents('README.md');
            $log=explode('# 更新日志 #',$log);
            $log=trim(str_replace('# 更新日志 #','',$log[1]));
            $log=preg_replace('@###\s*@','',$log);
            $log=preg_replace('@(\d{4}-\d{2}-\d{2})@i','<h3>\1</h3>',$log);
            $log=preg_replace('@^\s*\d.+@im','<p>\0</p>',$log);
            S('hdcmsLog',$log,3600);
        }
        echo $log;
    ?>
    </div>
</div>
<div class="copyright">
    <div class="text">
        {$hd.config.copyright}
    </div>
</div>
</body>
</html>